<div class="page-content">

<section class="errormsgDiv"   v-if="nodata">
    <p class="errormsg">\（￣︶￣）/</p>
    <p class="errormsg2">您还没有创建优惠券哦</p>
 </section>

    <div class="item" v-else    v-for="cardInfo in items" >
		    <div class="logo"><img :src="store.logo"></div>
		    <div class='light'>{{cardInfo.config.base_info.brand_name}}</div>
		    <div class='title mgt10'>{{cardInfo.config.base_info.title}}</div>
		    <div class='info light' > {{cardInfo.time_limit_str}} </div>
		    <div class="">
		    	   <router-link :to="{ name: 'cardDetail', params: { id: cardInfo.cardId }}"  class="btn btn2">投放</router-link>
		    	   	 <div v-on:click="deleteCard($event)"   :data-id="cardInfo.id" :data-appid="cardInfo.appid"  :data-card_id="cardInfo.cardId"  class="btn btn3" >删除</div>
		    </div>
		   
		     <div class='info light'>{{cardInfo.config.base_info.description}}</div>
		     <a class='charge-item clearfix' >
		      <div class="charge-item-left">人传人优惠券</div>
		        
		         <div   class="charge-item-right"  v-on:click='setCommission($event)'  :data-title="cardInfo.config.base_info.title" :data-idx="cardInfo.id" :data-commission_money="cardInfo.commission_money">设置</div>
		        <img class='arrowright' src='/pages/wx-card/images/arrowright.png' />
		        <div class="clear"></div>
		          <div class='light mgt5'>奖金=消费金额*奖金比率 <span  v-if="cardInfo.commission_money>0">({{cardInfo.commission_money}}%)</span></div>
		          <div class="clear"></div>
		     </a>

		      
   </div>
  <div style="height: 80px"></div>
 <router-link :to="{ name: 'chooseAppid', params: { type: 'addCard' ,id:0}}"     class="btn w100 fixBox">创建优惠券</router-link>


<!-- 人传人优惠券 -->
	 <form class="popup" id="popup_commission" style="background-color: #fff;">
	 	<div class="popup-title">{{title}}</div>
	 	  <div class="list-li">
	       
	         	 <div class="li"  >
	            	<div class="li-input-text">奖金比例</div>
		            <div class="li-input">
		              <input  maxlength="2" type="number" placeholder='填20就是20%' :value='commission_money' id='commission_money'></input>
		            </div>
		            <div class="clear"></div>
	         	 </div> 
	     </div>
	         	  
       <div   class="btn w80" v-on:click="saveCommission($event)" style="margin-left: 10%; margin-top: 20px; margin-bottom: 30px">保存</div>
	 </form>

    <!-- 人传人优惠券 -->

</div>
